#pragma once

#include "cmsisDAP/cmsisDAP.h"

class cmsisDapUSB: public cmsisDAP
{
public:
    cmsisDapUSB();
    ~cmsisDapUSB();

public:
    virtual bool open(const char *dev, long params = 0) final;
    virtual void close() final;

private:
    virtual int dap_read(struct cmsis_dap *dap, int timeout_ms) final;
    virtual int dap_write(struct cmsis_dap *dap, int len, int timeout_ms) final;

};
